
import request from '../utils/request' 

export function getUser() {
    return request.get('/home/user')
}
export function login(data) {
    return request.post('/home/login', data)
}
export function register(data) {
    return request.post('/home/register', data) 
}
export function getCategoryList() {
    return request.get('/home/category/list') 
}
export function getGoodsList(params) {
    return request.get('/home/goods/list', { params }) 
    }
    // 商品相册接口
export function getGoodsAlbum(params) {
    return request.get('/home/goods/album', { params }) }
    
    // 商品详情接口
    export function getGoodsDetail(params) {
    return request.get('/home/goods', { params })
    }
    // 购物车接口
    export function getCartList(params) {
    return request.get('/home/goods/cart', { params }) }
